import time
import unittest

from scripts.TestLoginAPI_json import TestLoginApi
#from scripts.TestLoginAPI import TestLoginApi
from tools.HTMLTestRunner import HTMLTestRunner
import app

suite = unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestLoginApi))
suite.addTest(unittest.makeSuite(TestLoginApi))
report = "./report/report.html"
print(app.BASE_DIR)
with open(report,"wb") as f:
    runner = HTMLTestRunner(f,title="接口测试报告")
    runner.run(suite)